<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>hello World</title>
</head>

<script type="text/javascript">

    function JSCallOc1(){
        test1('ele.productId = "2";','"2"','ele.wxId = "12312312312');
    }
   function JSCallOc2(){
       var obj = new Object();
       var array = new Array();
       obj.lstProductToBuy = array;
       var selectedProduct = [];
       var ele = new Object();
       ele.productId = "123213";
       ele.shopId = "12312312312";
       ele.cartId="12312312";
       ele.number = 12;
       ele.wxId = "12312312312";
       array.push(ele);
       // 让webView跳转到百度页面（加载百度页面）
       test2(JSON.stringify(obj),'iOS:11');

   }
  function aaa(){
      alert("OC调用了无参数的js方法");
  }
  function bbb(name,num){
      alert(name+num);
  }

</script>

<body bgcolor="#555555">
  <button type="button"  onclick="JSCallOc1()">JS调用OC方法(无参)</button>
  <button type="button"  onclick="JSCallOc2()">JS调用OC方法(传参)</button>
<!--  <a href="test3.html">test3.html</a>-->
  <a href="Test4.html">W3School</a>


</body>
</html>
